/* 更新后的style.css */
.root {
    -fx-font-family: "Segoe UI", "Microsoft YaHei";
    -fx-background-image: url('../image/background.png');
    -fx-base: #2c3e50;
    -fx-background-size: cover;
    -fx-background-position: center;
    -fx-effect: dropshadow(gaussian, rgba(0,0,0,0.2), 20, 0.5, 0, 0);
}

/* 自适应背景设置 */
.image-view {
    -fx-opacity: 0.9;
}

/* 右侧表单容器 */
.form-container {
    -fx-padding: 40px;
    -fx-background-color: transparent;
}

/* 玻璃拟态效果 */
.glassmorphism-box {
    -fx-background-color: rgba(255, 255, 255, 0.88);
    -fx-background-radius: 20;
    -fx-border-radius: 20;
    -fx-border-width: 1px;
    -fx-border-color: rgba(255, 255, 255, 0.3);
    -fx-padding: 40px 50px;
    -fx-effect: dropshadow(gaussian, rgba(0,0,0,0.1), 25, 0.2, 0, 5);
}

/* 标题样式 */
.title-text {
    -fx-font-size: 32px;
    -fx-fill: #2c3e50;
    -fx-font-weight: bold;
    -fx-effect: dropshadow(gaussian, rgba(255,255,255,0.8), 0, 0, 0, 1);
}

/* 输入标签 */
.input-label {
    -fx-text-fill: #34495e;
    -fx-font-size: 14px;
    -fx-font-weight: 600;
}

/* 现代输入框 */
.modern-input {
    -fx-pref-width: 300px;
    -fx-pref-height: 42px;
    -fx-background-color: rgba(255,255,255,0.95);
    -fx-background-radius: 8;
    -fx-border-radius: 8;
    -fx-border-color: #bdc3c7;
    -fx-border-width: 1px;
    -fx-font-size: 14px;
    -fx-prompt-text-fill: #95a5a6;
    -fx-effect: innershadow(gaussian, rgba(0,0,0,0.05), 5, 0, 0, 2);
}

.modern-input:focused {
    -fx-border-color: #3498db;
    -fx-border-width: 2px;
    -fx-effect: dropshadow(gaussian, rgba(52,152,219,0.2), 8, 0.5, 0, 2);
}

/* 主要按钮 */
.primary-btn {
    -fx-background-color: linear-gradient(to right, #3498db, #2980b9);
    -fx-text-fill: white;
    -fx-pref-width: 140px;
    -fx-pref-height: 45px;
    -fx-font-size: 14px;
    -fx-font-weight: bold;
    -fx-background-radius: 8;
    -fx-border-radius: 8;
    -fx-cursor: hand;
    -fx-effect: dropshadow(gaussian, rgba(52,152,219,0.3), 8, 0, 0, 2);
    -fx-transition: all 0.3s;
}

.primary-btn:hover {
    -fx-background-color: linear-gradient(to right, #2980b9, #3498db);
    -fx-effect: dropshadow(gaussian, rgba(52,152,219,0.5), 12, 0, 0, 4);
    -fx-translate-y: -2px;
}

/* 次要按钮 */
.secondary-btn {
    -fx-background-color: transparent;
    -fx-text-fill: #7f8c8d;
    -fx-border-color: #bdc3c7;
    -fx-border-width: 1px;
    -fx-border-radius: 8;
    -fx-pref-width: 140px;
    -fx-pref-height: 45px;
    -fx-font-weight: 600;
}

.secondary-btn:hover {
    -fx-background-color: rgba(52,152,219,0.1);
    -fx-text-fill: #3498db;
    -fx-border-color: #3498db;
}

/* 修改密码界面特有样式 */
.status-message {
    -fx-text-fill: #e74c3c;
    -fx-font-size: 13px;
    -fx-wrap-text: true;
    -fx-max-width: 280px;
}

.back-link {
    -fx-text-fill: #7f8c8d;
    -fx-border-color: transparent;
    -fx-underline: true;
    -fx-cursor: hand;
}

.back-link:hover {
    -fx-text-fill: #3498db;
}

/* 密码强度提示 */
.password-strength {
    -fx-font-size: 12px;
    -fx-text-fill: #95a5a6;
}

.password-strength.weak {
    -fx-text-fill: #e74c3c;
}

.password-strength.medium {
    -fx-text-fill: #f1c40f;
}

.password-strength.strong {
    -fx-text-fill: #2ecc71;
}